/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ge.info.domain;

import ge.ktools.StringUtils;
import java.io.Serializable;
import java.util.List;

/**
 *
 * @author koka
 */
public class Organization implements Serializable
{

    private int mainID;
    private String name;
    private String nameeng;
    private String director;
    private String workingHours;
    private String identCode;
    private String note;
    private String business;
    private String founded;
    private String legaladdress;
    private String mail;
    private String partnerbank;
    private String webaddress;
    private String info;
    private String contactperson;
    private String dayoffs;
    private Address address;
    private String legalstatuse;
    private int statuse;
    private int notecrit;
    private int eprior;
    private String workpersoncountity;
    private int masterID;
    private List<MainResultDetail> details;
    private List<Organization> slaves;
    private StringString master;
    private boolean searchedFor;

    public Organization()
    {

        address = new Address();
    }

    public boolean equals(Object o)
    {
        if (!(o instanceof Organization))
        {
            return false;
        }
        return this.getMainID() == (((Organization) o).getMainID());
    }

    /**
     * @return the mainID
     */
    public int getMainID()
    {
        return mainID;
    }

    /**
     * @param mainID the mainID to set
     */
    public void setMainID(int mainID)
    {
        this.mainID = mainID;
    }

    /**
     * @return the name
     */
    public String getName()
    {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name)
    {
        this.name = name;
    }


    public String getNameeng()
    {
        return nameeng;
    }

    /**
     * @param name the name to set
     */
    public void setNameeng(String nameeng)
    {
        this.nameeng = nameeng;
    }


    /**
     * @return the director
     */
    public String getDirector()
    {
        return director;
    }

    /**
     * @param director the director to set
     */
    public void setDirector(String director)
    {
        this.director = director;
    }

    /**
     * @return the workingHours
     */
    public String getWorkingHours()
    {
        return workingHours;
    }

    /**
     * @param workingHours the workingHours to set
     */
    public void setWorkingHours(String workingHours)
    {
        this.workingHours = workingHours;
    }

    /**
     * @return the identCode
     */
    public String getIdentCode()
    {
        return identCode;
    }

    /**
     * @param identCode the identCode to set
     */
    public void setIdentCode(String identCode)
    {
        this.identCode = identCode;
    }

    /**
     * @return the note
     */
    public String getNote()
    {
        return note;
    }

    /**
     * @param note the note to set
     */
    public void setNote(String note)
    {
        this.note = note;
    }

    /**
     * @return the address
     */
    public Address getAddress()
    {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(Address address)
    {
        this.address = address;
    }

    /**
     * @return the details
     */
    public List<MainResultDetail> getDetails()
    {
        return details;
    }

    /**
     * @param details the details to set
     */
    public void setDetails(List<MainResultDetail> details)
    {
        this.details = details;
    }

    /**
     * @return the business
     */
    public String getBusiness()
    {
        return business;
    }

    /**
     * @param business the business to set
     */
    public void setBusiness(String business)
    {
        this.business = business;
    }

    public List<String> getNames()
    {
        return StringUtils.splitString(name);
    }

    public List<String> getNotes()
    {
        return StringUtils.splitString(note);
    }

    /**
     * @return the founded
     */
    public String getFounded()
    {
        return founded;
    }

    /**
     * @param founded the founded to set
     */
    public void setFounded(String founded)
    {
        this.founded = founded;
    }

    /**
     * @return the legaladdress
     */
    public String getLegaladdress()
    {
        return legaladdress;
    }

    /**
     * @param legaladdress the legaladdress to set
     */
    public void setLegaladdress(String legaladdress)
    {
        this.legaladdress = legaladdress;
    }

    /**
     * @return the mail
     */
    public String getMail()
    {
        return mail;
    }

    /**
     * @param mail the mail to set
     */
    public void setMail(String mail)
    {
        this.mail = mail;
    }

    /**
     * @return the partnerbank
     */
    public String getPartnerbank()
    {
        return partnerbank;
    }

    /**
     * @param partnerbank the partnerbank to set
     */
    public void setPartnerbank(String partnerbank)
    {
        this.partnerbank = partnerbank;
    }

    /**
     * @return the webaddress
     */
    public String getWebaddress()
    {
        return webaddress;
    }

    /**
     * @param webaddress the webaddress to set
     */
    public void setWebaddress(String webaddress)
    {
        this.webaddress = webaddress;
    }

    /**
     * @return the info
     */
    public String getInfo()
    {
        return info;
    }

    /**
     * @param info the info to set
     */
    public void setInfo(String info)
    {
        this.info = info;
    }

    /**
     * @return the contactperson
     */
    public String getContactperson()
    {
        return contactperson;
    }

    /**
     * @param contactperson the contactperson to set
     */
    public void setContactperson(String contactperson)
    {
        this.contactperson = contactperson;
    }

    /**
     * @return the dayoffs
     */
    public String getDayoffs()
    {
        return dayoffs;
    }

    /**
     * @param dayoffs the dayoffs to set
     */
    public void setDayoffs(String dayoffs)
    {
        this.dayoffs = dayoffs;
    }

    /**
     * @return the legalstatuse
     */
    public String getLegalstatuse()
    {
        return legalstatuse;
    }

    /**
     * @param legalstatuse the legalstatuse to set
     */
    public void setLegalstatuse(String legalstatuse)
    {
        this.legalstatuse = legalstatuse;
    }

    /**
     * @return the statuse
     */
    public int getStatuse()
    {
        return statuse;
    }

    /**
     * @param statuse the statuse to set
     */
    public void setStatuse(int statuse)
    {
        this.statuse = statuse;
    }


    public int getNotecrit()
    {
        return notecrit;
    }

    /**
     * @param statuse the statuse to set
     */
    public void setNotecrit(int notecrit)
    {
        this.notecrit = notecrit;
    }


    public int getEprior()
    {
        return eprior;
    }

    /**
     * @param statuse the statuse to set
     */
    public void setEprior(int eprior)
    {
        this.eprior = eprior;
    }


    /**
     * @return the workpersoncountity
     */
    public String getWorkpersoncountity()
    {
        return workpersoncountity;
    }

    /**
     * @param workpersoncountity the workpersoncountity to set
     */
    public void setWorkpersoncountity(String workpersoncountity)
    {
        this.workpersoncountity = workpersoncountity;
    }

    /**
     * @return the masterID
     */
    public int getMasterID()
    {
        return masterID;
    }

    /**
     * @param masterID the masterID to set
     */
    public void setMasterID(int masterID)
    {
        this.masterID = masterID;
    }

    /**
     * @return the slaves
     */
    public List<Organization> getSlaves()
    {
        return slaves;
    }

    /**
     * @param slaves the slaves to set
     */
    public void setSlaves(List<Organization> slaves)
    {
        this.slaves = slaves;
    }

    /**
     * @return the master
     */
    public StringString getMaster()
    {
        return master;
    }

    /**
     * @param master the master to set
     */
    public void setMaster(StringString master)
    {
        this.master = master;
    }

    /**
     * @return the searchedFor
     */
    public boolean isSearchedFor()
    {
        return searchedFor;
    }

    /**
     * @param searchedFor the searchedFor to set
     */
    public void setSearchedFor(boolean searchedFor)
    {
        this.searchedFor = searchedFor;
    }
    public List<String> getDirectorNames()
    {
        return StringUtils.splitString(director);
    }

}
